package us.icitap.commandcenter.business.ejb.persistence;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.TableGenerator;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="CALL_MANAGEMENT", schema="MPC")
@TableGenerator(name="CALL_MANAGEMENT_IDS",table="AUTO_IDS",valueColumnName="LAST_ID",initialValue=1, allocationSize=1)
public class CallManagement implements Serializable{

	@Id
	@GeneratedValue(strategy=GenerationType.TABLE,generator="CALL_MANAGEMENT_IDS")
	private Integer id;
	
	@ManyToOne
	@JoinColumn(name="CALL_ID")
	private Call call;
	
	@Column(name="WHO_IS_NOTIFIED")
	private String whoIsNotified;
	
	@Column
	private String patrols;
	
	@Column(name="GIVEN_ORDERS")
	private String givenOrders;
	

	@Column
	private String notes;
	
	@Column(name="RECORD_USER")
	private String recordUser;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="RECORD_DATE")
	private Date recordDate;

	
	public CallManagement() {
		// TODO Auto-generated constructor stub
	}
	
	public CallManagement(Call call) {
		this.call = call;
	}
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Call getCall() {
		return call;
	}

	public void setCall(Call call) {
		this.call = call;
	}

	public String getWhoIsNotified() {
		return whoIsNotified;
	}

	public void setWhoIsNotified(String whoIsNotified) {
		this.whoIsNotified = whoIsNotified;
	}

	public String getPatrols() {
		return patrols;
	}

	public void setPatrols(String patrols) {
		this.patrols = patrols;
	}

	public String getGivenOrders() {
		return givenOrders;
	}

	public void setGivenOrders(String givenOrders) {
		this.givenOrders = givenOrders;
	}



	public String getRecordUser() {
		return recordUser;
	}

	public void setRecordUser(String recordUser) {
		this.recordUser = recordUser;
	}

	public Date getRecordDate() {
		return recordDate;
	}

	public void setRecordDate(Date recordDate) {
		this.recordDate = recordDate;
	}

	public String getNotes() {
		return notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}
	
}
